<?php

namespace Modules\Coupon\Entities;

use Illuminate\Database\Eloquent\Model;

class CouponActive extends Model
{
    protected $fillable = [];

    protected $casts = [
        'limit' => 'integer',
        'released' => 'integer',
        'used' => 'integer',
        'type' => 'integer',
        'status' => 'integer',
        'param' => 'json',
    ];

    public function coupons()
    {
        return $this->hasMany(Coupon::class);
    }
}
